package xmlParser;

import mover.Mass;
import mover.Spring;

/**
 * Creates a Muscle object that extends Spring
 * @author Ga-Young and Perry Zheng
 *
 */
public class Muscle extends Spring {
	protected double amplitude;
	protected double phase;

	/**
	 * Creates a muscle object
	 * @param node1 first mass
	 * @param node2 second mass
	 * @param restLength the restLength of the muscle
	 * @param amplitude the amplitude of the muscle
	 * @param phase the phase of the muscle
	 */
	public Muscle(Mass node1, Mass node2, double restLength, double amplitude,
			double phase) {
		super(node1, node2, restLength, 0);
		this.amplitude = amplitude;
		this.phase = phase;
	}

}
